package idiet.service;

import idiet.bean.CustomerPal;
import idiet.bean.FoodIngredientElement;
import idiet.bean.Rni;
import idiet.dao.hibernate.RniDao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("rniService")
public class RniService {
	@Autowired
	RniDao rniDao;
	public Rni getRni(int rniId){
		return this.rniDao.getRniByRniId(rniId);
	}
	public List<Rni> getRnis(){
		return this.rniDao.getRnis();
	}
	public List<Rni> getRnis(int age){
		return this.rniDao.getRnis(age);
	}
	public List<Rni> getRnis(CustomerPal pal){
		return this.rniDao.getRnis(pal);
	}
	public List<Rni> getRnis(FoodIngredientElement element){
		return this.rniDao.getRnis(element);
	}
	public List<Rni> getRnis(int age,FoodIngredientElement element){
		return this.rniDao.getRnis(age, element);
	}
}
